package gof23.create.prototype;

public class Client {

	public static void main(String[] args) throws CloneNotSupportedException {
		PDF pdf1 = new PDF();
		pdf1.setName("pdf1");
		PDF pdf2 = (PDF) pdf1.clone();
		
		System.out.println("对象是否相同:"+pdf1.equals(pdf2));
		System.out.println("name是否相同:"+pdf1.getName().equals(pdf2.getName()));
	}
}
